package com.sample.tdf.domain;

import cn.com.taiji.common.base.BaseDomain;
import cn.com.taiji.common.util.CommonJpaQueryWord;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.hibernate.annotations.Where;

import javax.persistence.Entity;
import javax.persistence.Table;

/**
 * 员工实体类
 */

@Data
@NoArgsConstructor
@Entity
@Table(name = "employee")
@Where(clause = "flag=1")
public class Employee extends BaseDomain{
    private static final long serialVersionUID = 7578292815543449813L;

    //工号
    @CommonJpaQueryWord(func = CommonJpaQueryWord.MatchType.equal)
    private String jobNumber;

    //姓名
    @CommonJpaQueryWord(func = CommonJpaQueryWord.MatchType.like)
    private String employeeName;

    //性别
    @CommonJpaQueryWord(func = CommonJpaQueryWord.MatchType.equal)
    private String employeeSex;

    //部门id
    @CommonJpaQueryWord(func = CommonJpaQueryWord.MatchType.equal)
    private String departmentId;

    //部门名称
    @CommonJpaQueryWord(func = CommonJpaQueryWord.MatchType.equal)
    private String departmentName;
}
